package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Schedule;
import com.atguigu.yygh.vo.hosp.ScheduleOrderVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface ScheduleService {

    void save(Map<String, Object> map);

    Page<Schedule> selectPage(Map<String, Object> map);

    void remove(Map<String, Object> map);

    Map getScheduleBookingRule(Long pageNum, Long pageSize, String hoscode, String depcode);

    List<Schedule> getScheduleDetail(String hoscode, String depcode, String workDate);

    Map getBookingSchedule(String hoscode, String depcode, Integer pageNum, Integer pageSize);

    Schedule getSchedule(String id);

    ScheduleOrderVo getScheduleOrderVo(String scheduleId);

    void updateSchedule(String scheduleId, Integer reservedNumber, Integer availableNumber);

    void addAvailableNum(String scheduleId);
}
